<?php

class Form_TypeenglishForm extends Form_Custom_General {

    public function init() {

        $child_id = $this->createElement('hidden', 'child_id')
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
                ->setAttribs(Array("size" => "60"));
        $this->addElement($child_id);

        $child_name = $this->createElement('text', 'child_name')
                ->setRequired(TRUE)
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("type_required_dropdown_value"))))
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                ))
                ->setAttribs(Array("size" => "60","class"=>"span6","placeholder"=>$this->translateObj->translate("type_frm_dropdown_value")));
        $this->addElement($child_name);
        
        $parent_id = $this->createElement('select', 'parent_id')
                ->setRequired(TRUE)
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("type_required_dropdown_name"))));
        $this->addElement($parent_id);
        
       
         
       
         $child_status = $this->createElement('select', 'child_status')
                ->setRequired(TRUE)
                ->addFilters(array(
                    new Zend_Filter_StringTrim(),
                    new Zend_Filter_StringToLower()
                ))
                ->addValidator('NotEmpty', true, array('messages' => array('isEmpty' => $this->translateObj->translate("type_required_status"))));
        $this->addElement($child_status); 
        
      
        
        
       


        $submit = $this->createElement('submit', 'Save')
                ->setAttribs(Array('title' => "Save changes", 'class'=>"btn-glow primary"))
                ->setLabel($this->translateObj->translate("frm_save"));
        $this->addElement($submit);


        $reset = $this->createElement('reset', 'Reset')
                ->setAttribs(Array('title' => "Save changes and continue to edit", 'class'=>"btn-glow primary"))
                ->setLabel($this->translateObj->translate("frm_reset"));
        $this->addElement($reset);
    }

}